namespace VAdvantage.Model
{

/** Generated Model - DO NOT CHANGE */
using System;
using System.Text;
using VAdvantage.DataBase;
using VAdvantage.Common;
using VAdvantage.Classes;
using VAdvantage.Process;
using VAdvantage.Model;
using VAdvantage.Utility;
using System.Data;
/** Generated Model for VSS_MRSettings
 *  @author Jagmohan Bhatt (generated) 
 *  @version Vienna Framework 1.1.1 - $Id$ */
public class X_VSS_MRSettings : PO
{
public X_VSS_MRSettings (Context ctx, int VSS_MRSettings_ID, String trxName) : base (ctx, VSS_MRSettings_ID, trxName)
{
/** if (VSS_MRSettings_ID == 0)
{
SetM_PriceList_Version_ID (0);
SetVSS_MRSETTINGS_ID (0);
}
 */
}
public X_VSS_MRSettings (Ctx ctx, int VSS_MRSettings_ID, String trxName) : base (ctx, VSS_MRSettings_ID, trxName)
{
/** if (VSS_MRSettings_ID == 0)
{
SetM_PriceList_Version_ID (0);
SetVSS_MRSETTINGS_ID (0);
}
 */
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_VSS_MRSettings (Context ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_VSS_MRSettings (Ctx ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_VSS_MRSettings (Ctx ctx, IDataReader dr, String trxName) : base(ctx, dr, trxName)
{
}
/** Static Constructor 
 Set Table ID By Table Name
 added by ->Harwinder */
static X_VSS_MRSettings()
{
 Table_ID = Get_Table_ID(Table_Name);
 model = new KeyNamePair(Table_ID,Table_Name);
}
/** Serial Version No */
static long serialVersionUID = 27563465387006L;
/** Last Updated Timestamp 8/9/2010 1:17:50 PM */
public static long updatedMS = 1281340070217L;
/** AD_Table_ID=1000138 */
public static int Table_ID;
 // =1000138;

/** TableName=VSS_MRSettings */
public static String Table_Name="VSS_MRSettings";

protected static KeyNamePair model;
protected Decimal accessLevel = new Decimal(3);
/** AccessLevel
@return 3 - Client - Org 
*/
protected override int Get_AccessLevel()
{
return Convert.ToInt32(accessLevel.ToString());
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Context ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Ctx ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Info
@return info
*/
public override String ToString()
{
StringBuilder sb = new StringBuilder ("X_VSS_MRSettings[").Append(Get_ID()).Append("]");
return sb.ToString();
}
/** Set Price List Version.
@param M_PriceList_Version_ID Identifies a unique instance of a Price List */
public void SetM_PriceList_Version_ID (int M_PriceList_Version_ID)
{
if (M_PriceList_Version_ID < 1) throw new ArgumentException ("M_PriceList_Version_ID is mandatory.");
Set_Value ("M_PriceList_Version_ID", M_PriceList_Version_ID);
}
/** Get Price List Version.
@return Identifies a unique instance of a Price List */
public int GetM_PriceList_Version_ID() 
{
Object ii = Get_Value("M_PriceList_Version_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
/** Set VSS_MRSETTINGS_ID.
@param VSS_MRSETTINGS_ID VSS_MRSETTINGS_ID */
public void SetVSS_MRSETTINGS_ID (int VSS_MRSETTINGS_ID)
{
if (VSS_MRSETTINGS_ID < 1) throw new ArgumentException ("VSS_MRSETTINGS_ID is mandatory.");
Set_ValueNoCheck ("VSS_MRSETTINGS_ID", VSS_MRSETTINGS_ID);
}
/** Get VSS_MRSETTINGS_ID.
@return VSS_MRSETTINGS_ID */
public int GetVSS_MRSETTINGS_ID() 
{
Object ii = Get_Value("VSS_MRSETTINGS_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
}

}
